home *** CD-ROM | disk | FTP | other *** search
/ Alde ADA 5 #1 / ADA CD-ROM - Alde Publishing.iso / cm / cas3.sid < prev    next >
Encoding:
Text File  |  1988-05-03  |  4.1 KB  |  86 lines

  1. --= SID = SIMTEL20 Ada Software Repository Item Description File = SID =--
  2. -- UNIT NAME         : COUNT_OF_ADA_STATEMENTS_3
  3. -- VERSION           : 1.2
  4. -- REVIEW CODE       : 
  5. -- DDN ADDRESS       : RCONN at SIMTEL20
  6. -- AUTHOR            : Richard Conn
  7. --                   : TI Ada Technology Branch
  8. --                   : Box 801, MS 8007
  9. --                   : McKinney, TX  75069
  10. -- COPYRIGHT         : 
  11. -- DATE CREATED      : 4 Apr 85
  12. -- DATE RELEASED     : 4 Apr 85
  13. -- DATE LAST UPDATED : 24 June 85
  14. -- LOCATION          : C2MUG
  15. -- LOCATION          : ASR
  16. -- ENVIRONMENT       : DEC VAX/VMS, DEC Ada
  17. --= CLASSIFICATION       ===============================================--
  18. -- CATEGORY LEVEL 1  : COMPONENTS
  19. -- CATEGORY LEVEL 2  : COUNT Ada STATEMENTS
  20. -- CATEGORY LEVEL 3  : Count of Ada Statements 3
  21. -- CATEGORY LEVEL 4  : 
  22. -- KEYWORD           : Source analysis
  23. -- KEYWORD           : Quantity
  24. -- KEYWORD           : Statements
  25. -- INDEX             : CAS3
  26. -- INDEX             : Source Analysis
  27. -- INDEX             : Analysis, Source
  28. -- INDEX             : Quantity
  29. -- INDEX             : Statements
  30. -- TAXONOMY          : 
  31. -- DEPENDENCIES      : 
  32. -- SEE ALSO          : PD:<ADA.COMPONENTS>CAS2, PD:<ADA.COMPONENTS>COUNTADA
  33. --= FILE LISTING         ===============================================--
  34. -- FILE SPECS        : PD:<ADA.COMPONENTS>CAS3.*
  35. -- DIRECTORY DISPLAY :
  36. -- Directory   PD:<ADA.COMPONENTS>
  37. --      File Name     Byte Count  Line Count
  38. --   ---------------  ----------  ----------
  39. --   CAS3.ADA               8259         225
  40. --   CAS3.PRO               2755          66
  41. --   ===============  ==========  ==========
  42. --     2 Files             11014         291
  43. --= ABSTRACT             ===============================================--
  44. --         This procedure calculates the  "STATEMENTS"  of  a  valid  Ada
  45. -- fragment  specified by a FILE_NAME string parameter.  It need not be a
  46. -- complete compilation unit, but it should have closed all  open  parens
  47. -- and strings.
  48. -- 
  49. --         The Ada statement is defined by a semicolon terminator outside
  50. -- of  comments,  parentheses,  or  string  or  character literals.  This
  51. -- definition is insensitive to formatting or layout of the source.
  52. -- 
  53. --         There  are  exotic  cases  for which this will misestimate the
  54. -- count but we have never encountered one in real code.
  55. -- 
  56. --         This  procedure  is  derived  from  Bill  Whitaker's  original
  57. -- COUNT_OF_ADA_STATEMENTS,  and  it  does  not   change   his   original
  58. -- algorithm.  It adds a line count and a character-checksum hash (sum of
  59. -- POS values of all non-space characters in the file mod 256).  It  also
  60. -- adds a count of the comment lines (over CAS2, which does not).
  61. --= REVISION HISTORY     ===============================================--
  62. -- 
  63. -- Derivation   : COUNT_OF_ADA_STATEMENTS_2 by Richard Conn
  64. -- Derivation   : COUNT_OF_ADA_STATEMENTS by Bill Whitaker
  65. --
  66. -- DATE         VERSION         AUTHOR          HISTORY
  67. -- 19850215     1.0             R Conn          Initial Release
  68. -- 19850506     1.1             R Conn          Overflow Traps Added
  69. -- 19850624     1.2             R Conn          Bug in Single-Quote Proc Fixed
  70. -- 
  71. --= RELEASE NOTICE       ===============================================--
  72. -- This software is released to the Public Domain (note:
  73. --   software released to the Public Domain is not subject
  74. --   to copyright protection).
  75. --= DISCLAIMER           ===============================================--
  76. --     This software and its documentation are provided "AS IS" and
  77. -- without any expressed or implied warranties whatsoever.  No warranties
  78. -- as to performance, merchantability, or fitness for a particular
  79. -- purpose exist.
  80. --     The user is advised to test the software thoroughly before
  81. -- relying on it.  The user must assume the entire risk and liability of
  82. -- using this software.  In no event shall any person or organization of
  83. -- people be held responsible for any direct, indirect, consequential or
  84. -- inconsequential damages or lost profits.
  85. --======================================================================--
  86.